
//---------------------------------------------------------------------------
#include "test_game.h"
#include "rendering/pg2_renderer.h"
//---------------------------------------------------------------------------
using namespace test;
//---------------------------------------------------------------------------
bool Game::init ()
{
	m_akVertices[0].x = -0.5f;	m_akVertices[0].y =  0.5f;	m_akVertices[0].z = 0.0f;	m_akVertices[0].color = PG2_COLOR_RGB(0,0,255);
	m_akVertices[1].x =  0.5f;	m_akVertices[1].y =  0.5f;	m_akVertices[1].z = 0.0f;	m_akVertices[1].color = PG2_COLOR_RGB(0,255,0);
	m_akVertices[2].x = -0.5f;	m_akVertices[2].y = -0.5f;	m_akVertices[2].z = 0.0f;	m_akVertices[2].color = PG2_COLOR_RGB(255,0,0);
	m_akVertices[3].x =  0.5f;	m_akVertices[3].y = -0.5f;	m_akVertices[3].z = 0.0f;	m_akVertices[3].color = PG2_COLOR_RGB(0,255,0);

	return true;
}
//---------------------------------------------------------------------------
void Game::frame (pg2::Renderer& rkRenderer)
{
	rkRenderer.draw(m_akVertices, pg2::TriangleStrip, 4);
}
//---------------------------------------------------------------------------
void Game::deinit ()
{

}
//---------------------------------------------------------------------------
